{extend name="public/base"/}
{block name="content"}
<section class="content-header">
    <h1>
        SEO设置
    </h1>
    <ol class="breadcrumb">
        <li><a href="{:U('Index/index')}"><i class="fa fa-dashboard"></i>首页</a></li>
        <li class="active"> SEO</li>
    </ol>
</section>
<style>
    .v52fmbx_hr{ padding:2px 0px; color:#666; font-weight:normal; }
    .v52fmbx_hr{ border-top:1px solid #ddd; margin:0px 0px 0px; padding:0px 5px 0px 15px; font-weight:bold; color:#333; font-size:14px; background:#f7f7f7; height:38px; line-height:38px;}
    .v52fmbx_hr .hr_right{ float:right;}
    .v52fmbx_hr .tips{ font-weight:normal; padding-left:20px; color:#999;}
    .v52fmbx h3.v52fmbx_hr:first-child{ border-top:1px solid #ddd; }


    .v52fmbx{ margin:8px 0px 0px; border:1px solid #ddd; border-top:0; overflow:hidden; text-align:left;}
    .v52fmbx dl:after{display:block;clear:both;content:"";visibility:hidden;height:0;}
    .v52fmbx dl{ width:100%; zoom:1;  background:#fff;}
    .v52fmbx dl{ border-top:1px solid #ddd; margin:0px 0px; display:-webkit-box; display:-moz-box; display:box; display:-ms-flexbox; position:relative; padding:5px 0px; }

    .v52fmbx dl dt{ margin:15px 15px 10px 15px; width:105px; color:#333; text-align:left; font-weight:normal; overflow:hidden; line-height:1.2;}
    .v52fmbx dl dd{ color:#aaa; -moz-box-flex:1.0; -webkit-box-flex:1.0; box-flex:1.0; -ms-flex:1; padding:2px 0px 0px 15px; margin:10px 0px; }
    .v52fmbx dl dd label input{ position:relative; top:1px; margin-right:3px;}

    .ftype_input .fbox {
        float: left;
        margin-right: 10px;
    }
    .v52fmbx dl dd .fbox{ color:#aaa; color:#656565;}
    .ftype_input .tips {
        float: left;
        padding-top: 5px;
    }
    .v52fmbx dl dd .tips{ color:#aaa;}
    .v52fmbx dl dd .tips:hover{ color:#f00;}
    .v52fmbx dl dd.labelinline label{ display:inline; }
    .v52fmbx dl dt.addimgdt{ padding:10px 5px 10px;}
    .v52fmbx dl dt.addimgdt p{ height:30px; line-height:30px; margin-bottom:8px;}
    .v52fmbx dl.noborder{ border-bottom:0;}

    .ftype_radio .fbox label {
        font-weight: normal;
        height: 28px;
        line-height: 28px;
        margin: 0px;
        display: block;
        color: #333;
    }



    .formerror{ margin-top:6px; height:20px; line-height:20px;}
    .formerror .fa-times{ color:#fff; border-radius:3px; padding:1px 2px; font-size:16px; margin-right:5px; background:red; }
    .formerror .fa-check{ color:#fff; border-radius:3px; padding:2px; font-size:14px; margin-right:5px; background:#10aa00; }
    .formerrorbox{ border:2px solid #f00!important; }

    .v52fmbx dl dd.ftype_description{ color:#fff; padding:8px; margin:0px 5px; background:#6c6fbf; }
    .v52fmbx-table-top{ padding-bottom:8px;}
    .v52fmbx-table-top:after{display:block;clear:both;content:"";visibility:hidden;height:0;}
    .v52fmbx-table-top{ width:100%; zoom:1;}
    .submit {
        display: block;
        background: #23b7e5;
        border: 0 none;
        height: 34px;
        line-height: 26px;
        padding: 0px 35px;
        color: #fff;
        cursor: pointer;
        border-radius: 2px;
    }
    .ftype_input .fbox input {
        width: 350px;
        height: 35px;
        line-height: 35px\9;
        padding: 2px 5px;
        border: 1px solid #dcdfe0;
        background-color: #fff;
        color: #333;
        outline: 0;
        border-radius: 2px;
    }
</style>
<div class="box-body border-radius-none ">
    <div class="col-xs-12">
        <form method="POST" class="ui-from" name="myform" action="{:U('Seoset/doseo')}" target="_self">
            <div class="v52fmbx">
                <h3 class="v52fmbx_hr">页面Title设置</h3>
                <dl>
                    <dt>首页标题（title）</dt>
                    <dd class="ftype_input">
                        <div class="fbox">
                            <input name="hometitle" type="text" value="{$seoset.hometitle}" />
                        </div>
                        <span class="tips">留空则采用网站关键词+网站名称的构成方式</span>
                    </dd>
                </dl>
                <dl>
                    <dt>内页标题（title）</dt>
                    <dd class="ftype_radio">
                        <div class="fbox">
                            <label><input type="radio" name="title_type" value="0" {if condition="$seoset.title_type eq 0"}checked="checked"{/if} />内容标题</label>
                            <label><input type="radio" name="title_type" value="1"{if condition="$seoset.title_type eq 1"}checked="checked"{/if} />内容标题+网站关键词</label>
                            <label><input type="radio" name="title_type" value="2" {if condition="$seoset.title_type eq 2"}checked="checked"{/if}/>内容标题+网站名称</label>
                            <label><input type="radio" name="title_type" value="3" {if condition="$seoset.title_type eq 3"}checked="checked"{/if}/>内容标题+网站关键词+网站名称</label>
                        </div>
                        <span class="tips">内页的标题(title)构成方式，您也可以在编辑/添加内容时自定义对应页面的标题(title)。</span>
                    </dd>
                </dl>
                <h3 class="v52fmbx_hr">关键词设置</h3>
                <dl>
                    <dt>网站关键词</dt>
                    <dd class="ftype_input">
                        <div class="fbox">
                            <input name="keywords" type="text" value="{$seoset.keywords}" />
                        </div>
                        <span class="tips">多个关键词请用竖线 | 隔开，建议3到4个关键词。</span>
                    </dd>
                </dl>
                <dl>
                    <dt>图片默认ALT</dt>
                    <dd class="ftype_input">
                        <div class="fbox">
                            <input name="altname" type="text" value="{$seoset.altname}" />
                        </div>
                        <span class="tips">鼠标移至图片显示的文字</span>
                    </dd>
                </dl>
                <dl>
                    <dt>超链接默认Title</dt>
                    <dd class="ftype_input">
                        <div class="fbox">
                            <input name="atitle" type="text" value="{$seoset.atitle}" />
                        </div>
                        <span class="tips">鼠标移至超链接显示的文字</span>
                    </dd>
                </dl>
                <dl>
                    <dt>友情链接本站名称</dt>
                    <dd class="ftype_input">
                        <div class="fbox">
                            <input name="linkname" type="text" value="{$seoset.linkname}" />
                        </div>
                        <span class="tips">显示在前台友情链接申请页面中</span>
                    </dd>
                </dl>
                <h3 class="v52fmbx_hr">优化文字设置（可用于增加关键词密度）</h3>
                <dl>
                    <dt>网站底部优化字</dt>
                    <dd class="ftype_ckeditor" style="margin-top: 0;">
                        <div class="fbox">
                            <script type="text/javascript" charset="utf-8" src="__PLUGINS__ueditor/ueditor.config.js"></script>
                            <script type="text/javascript" charset="utf-8" src="__PLUGINS__ueditor/ueditor.all.min.js"> </script>
                            <script type="text/javascript" charset="utf-8" src="__PLUGINS__ueditor/lang/zh-cn/zh-cn.js"></script>
                            <script type="text/javascript" charset="utf-8" src="__PLUGINS__ueditor/js_ueditor.js"></script>
                            <textarea id="editor" class="textarea" name="content" placeholder=""  style="width: 100%;height:300px;font-size: 14px; line-height: 18px;padding: 10px;">{$seoset.content}</textarea>
                        </div>
                    </dd>
                </dl>
                <dl>
                    <dt>头部优化文字</dt>
                    <dd class="ftype_ckeditor" style="margin-top: 0;">
                        <div class="fbox">
                            <textarea id="seoeditor" class="textarea1" name="seocontent" placeholder=""  style="width: 100%;height:300px;font-size: 14px; line-height: 18px;padding: 10px;">{$seoset.seocontent}</textarea>

                        </div>
                    </dd>
                </dl>
                <script>
                    $(document).ready(function(){
                        UE.getEditor("editor");
                        UE.getEditor("seoeditor");
                    });
                </script>
                <dl class="noborder">
                    <dt> </dt>
                    <dd style="margin-left: 14px;">
                        <input type="submit" name="submit" value="保存" class="submit">
                    </dd>
                </dl>
            </div>
        </form>
    </div>

</div>



<!-- test -->



<!-- test end -->

{/block}
ock}